<?php
namespace Core\init;

class RouterCollectr{
    public $routes=[];

    /**
     * 收集路由
     *
     * @param [type] $method
     * @param [type] $uri
     * @param [type] $handler
     * @return void
     */
    public function addRouter($method,$uri,$handler){
        $this->routes[] = ['method'=>$method,'uri'=>$uri,'handler'=>$handler];
    }
}